package org.bling.star.server.adapter;


import org.slf4j.Logger;

import java.util.ServiceLoader;

public class AbstractConnectAdapter implements ConnectAdapter{


    private static final Logger log = org.slf4j.LoggerFactory.getLogger(AbstractConnectAdapter.class);

    @Override
    public <T> ServiceLoader<T> initLoader(Class<T> serviceClass) {
        ServiceLoader<T> load = ServiceLoader.load(serviceClass);
        if(null == load){
            log.error("loader can't load interface:{}",serviceClass.getName());
        }
        return load;
    }
}
